package com.situ.mall.generic;

import org.junit.jupiter.api.Test;

public class GenericDemo2 {
    public <K, T> K save(K t, T k) {
        return t;
    }

    @Test
    public void test1() {
        Float result1 = save(1.0f, 1);
        System.out.println(result1);

        String result2 = save("abc", 1);
        System.out.println(result2);

    }
}
